package com.example.videolib

import com.example.baselib.BaseRepository
import com.example.baselib.databean.ResponseData
import huaan.com.mvvmdemo.http.RetrofitClient
import retrofit2.Response
import java.util.HashMap

/**
 * Author: sxygsj
 * Date: 2020/5/6 10:35
 * Description: 人员定位
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
class VideoRepository :BaseRepository(){
    suspend fun loadRcvData(token:String,unitcode:String):Response<ResponseData<String>> = request {
        RetrofitClient.reqApi().loadRcvData(token,unitcode)
    }

    suspend fun loadUrl(token: String, map: HashMap<String, String>, streamType: Int) =request{
        RetrofitClient.reqApi().loadUrl(token,map,streamType)
    }

    suspend fun loadNickData(token: String) =request {
        RetrofitClient.reqApi().loadNickData(token)
    }

}